set (visualizer_SRCS      
       "gldrawer.cpp" 
       "main.cpp"  
       "paintdata.cpp"  
       "tools.cpp"
       "../tests/segmentrasterization.cpp"
    )

set (visualizer_LIBS
     geometry
    )

find_package (Qt4 COMPONENTS QtOpenGL QtCore QtGui REQUIRED)
include (${QT_USE_FILE})
include_directories (${QT_INCLUDE_DIR})
set (visualizer_LIBS ${visualizer_LIBS} ${QT_LIBRARIES})

qt4_wrap_cpp(visualizer_MOC_SRCS 
            	gldrawer.h            	
            	tools.h
		paintdata.h
            )

set (visualizer_SRCS ${visualizer_SRCS} ${visualizer_MOC_SRCS})

find_package (OpenGL REQUIRED)
include_directories (${OPENGL_INCLUDE_DIR})
set (visualizer_LIBS ${visualizer_LIBS} ${OPENGL_LIBRARIES})

add_executable (visualizer ${visualizer_SRCS})
target_link_libraries (visualizer ${visualizer_LIBS})
